﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using com.vs.DataAccess;
using com.vs.DataAccess.DO;
using com.vs.General;
using com.vs.General.RF;

namespace com.vs.RF.Web.receiving
{
    public partial class AttributeEntry : RFDisplayPage
    {
        protected ItemDO itmDO = null;
        protected List<AttributeTemplateDO> ltTemp = null;
        protected int iAttrNum = 0;
        private ReceiptContainerDO rcDO = null;

        protected void Page_Load(object sender, EventArgs e)
        {
            go();
        }

        protected void btnCancel_Click(object sender, EventArgs e)
        {
            Server.Transfer("CheckInQtyEntry.aspx");
        }

        protected override void initData()
        {

            try
            {
                this.itmDO = (ItemDO)Session["ITEM_DO"];
                ltTemp = AttributeTemplateDO.GetListByColumn(rfSess, "INTERNAL_TEMPLATE_NUM", itmDO.ATTRIBUTE_TEMPLATE_NUM);
                if (ltTemp != null)
                    iAttrNum = ltTemp.Count;                
            }
            catch (Exception e)
            {
                ExceptionManager.LogException(rfSess, e);
                stErrorMessage = e.Message;
            }
            finally
            {
            }
        }
    }
}
